<?php
include("../../inc/global.inc");
include("../islogin.php");
$url="sent.php";
$thepage=$_GET['page']?$_GET['page']:1;
$maxpage=10;
if($_GET['del_act']){
@mysql_query("update note set from_is_id='0' where from_id='".$_COOKIE['user_id']."' and id='".$_GET['del_id']."'");
echo "<script>location='".$url."'</script>";
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>会员中心-三帝贸易网</title>
<link href="../css/css.css" rel="stylesheet" type="text/css" />
</head>
<script type="text/javascript" src="../js/left.js"></script>
<body>
<div id="mian">
<?php include("../inc/top.php");?>
<div class="top1"><span>您当前位置：<a href="../index.php" class="dh">会员助手</a> &gt;&gt; 信箱管理 &gt;&gt; 收信箱</span></div>
<div class="left">
<?php include("../inc/left.php");?>
</div>
<div class="right">
<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
   <TR>
     <TD height="40" bgcolor="#EFF6FF" style="font-size:18px;font-weight:bold;padding-left:8px;">发信</TD>
   </TR>
</TABLE>
<br>
<?php
if($_GET[id]){
$rs=mysql_query("select * from note where id='".$_GET['id']."' and from_id='".$_COOKIE['user_id']."'");
$row=mysql_fetch_array($rs);
if($row[0]){
?>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#C1DCF5">

  <tr>
    <td height="30" colspan="2" bgcolor="#EFF6FF" style="padding:5px;"><a href="javascript:history.go(-1)">« 返回</a>&nbsp;&nbsp;<a href="reply_mail.php?fromid=<?=$row[from_id]?>&toid=<?=$row[to_id]?>&n_subject=<?=urlencode($row[n_subject])?>">重发</a></td>
  </tr>
    <tr>
    <td height="30" align="right" bgcolor="#EFF6FF"><strong> 收件人:</strong></td>
    <td bgcolor="#FFFFFF" style="padding-left:5px;"><?php
	  $m_rs=@mysql_query("select * from member where id='$row[to_id]'");
	  $m_row=@mysql_fetch_array($m_rs);
	  ?><?=$m_row[m_user]?></td>
  </tr>
  <tr>
    <td width="140" height="30" align="right" bgcolor="#EFF6FF"><strong>主题:</strong></td>
    <td width="582" bgcolor="#FFFFFF" style="padding-left:5px;"><?=$row[n_subject]?></td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#EFF6FF"><strong>内容:</strong></td>
    <td bgcolor="#FFFFFF" style="padding:5px;"><?=$row[n_content]?></td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#EFF6FF"><strong>附件:</strong></td>
    <td bgcolor="#FFFFFF" style="padding-left:5px;"><?php if($row[fujian_1]){?><a href="/upfile/<?=$row[fujian_1]?>" target="_blank">附件 1</a><br /><?php }?>
	<?php if($row[fujian_2]){?><a href="/upfile/<?=$row[fujian_2]?>" target="_blank">附件 2</a><?php }?></td>
  </tr>
    <?php if($row[n_web]){?>
  <tr>
    <td height="30" align="right" bgcolor="#EFF6FF"><strong>URL
      :</strong></td>
    <td bgcolor="#FFFFFF" style="padding-left:5px;"><a href="<?=$row[n_web]?>" target="_blank"><?=$row[n_web]?></a></td>
  </tr>
  <?php }?>
    <tr>
    <td height="30" align="right" bgcolor="#EFF6FF"><strong>时间:</strong></td>
    <td bgcolor="#FFFFFF" style="padding-left:5px;"><?=$row['add_time']?></td>
  </tr>
</table>
<?php
} }?>
</div>
<div class="onl"></div>
<?php include("../inc/foot.php");?>
</div>
</body>
</html>
<script language="javascript">
function del(){
if(confirm("确定要删除该信息!"))
return true;
else
return false;
}
</script>
